home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xml;
-
- import com.extensibility.plugin.PluginRegistry;
- import com.extensibility.plugin.api.URIScheme;
- import com.extensibility.plugin.api.URISchemeAdapter;
- import java.io.IOException;
- import java.io.InputStream;
- import java.io.OutputStream;
- import java.io.Reader;
- import java.io.Writer;
-
- public class URIUrnScheme extends URISchemeAdapter {
- private String urn;
-
- public static void registerPlugin(PluginRegistry var0) {
- var0.registerPlugin("URIScheme10", Class.forName("com.extensibility.xml.URIUrnScheme"), "URIUrnScheme", 65537);
- }
-
- public URIUrnScheme() {
- this.urn = null;
- }
-
- public URIUrnScheme(String var1) {
- this.urn = var1;
- }
-
- public void registerSchemes(URIScheme.Manager var1) {
- var1.registerScheme("urn", (Class)null, this);
- }
-
- public URIScheme construct(String var1, String var2) {
- return new URIUrnScheme(var2);
- }
-
- public URIScheme construct(Object var1) {
- return null;
- }
-
- public URIScheme construct(String var1) {
- return new URIUrnScheme(var1);
- }
-
- public String getScheme() {
- return "urn";
- }
-
- public String getUIName() {
- return this.urn;
- }
-
- public InputStream createInputStream() throws IOException {
- return null;
- }
-
- public Reader createReader() throws IOException {
- return null;
- }
-
- public OutputStream createOutputStream() throws IOException {
- return null;
- }
-
- public Writer createWriter() throws IOException {
- return null;
- }
-
- public boolean exists() {
- return false;
- }
-
- public boolean equals(URIScheme var1) {
- URIUrnScheme var2 = (URIUrnScheme)var1;
- return this.urn.equals(var2.urn);
- }
-
- public int compareTo(URIScheme var1) {
- URIUrnScheme var2 = (URIUrnScheme)var1;
- return this.urn.compareTo(var2.urn);
- }
-
- public String getShortName() {
- String var1 = this.urn;
- int var2 = var1.lastIndexOf(":");
- if (var2 >= 0 && var2 + 1 < var1.length()) {
- var1 = var1.substring(var2 + 1);
- }
-
- return var1;
- }
-
- public String getFullPath() {
- return this.urn;
- }
- }
-